package snake.controll;

import snake.snakeSprites.Direction;
import snake.snakeSprites.Snake;

/**
 *
 * @author Boogie
 */
public class SnakeMoveCommand implements SnakeCommand{
    private final Snake snake;
    private final Direction direction;
    
    public SnakeMoveCommand(Snake s,Direction d){
        this.snake = s;
        this.direction = d;
    }
    @Override
    public void execute() {
        snake.move(direction);
    }
    
}
